<?php
namespace app\index\controller;
use think\Db;
class Index extends Base{
    public function index(){
    	$banner=Db::name('banner')->where('state',1)->order('sort desc')->select();
        $introduce=Db::name('introduce')->where('id',1)->find();
        $introduce['intro_item']=json_decode($introduce['intro_item']);
        $express=Db::name('express_style')->order('id asc')->select();
        $top_news=Db::name('news')->where('state',1)->where('top',1)->find();
        $news=Db::name('news')->where('state',1)->order('id desc')->limit(3)->select();
        $express_news=Db::name('express_news')->order('id desc')->limit(10)->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('banner',$banner);
        $this->assign('introduce',$introduce);
        $this->assign('express',$express);
        $this->assign('top_news',$top_news);
        $this->assign('news',$news);
        $this->assign('express_news',$express_news);
        return $this->fetch();
    }
}
